home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
USGS: Coal Resource Asse… Rocky Mts & Great Plains
/
USGS Coal Resource Assessment - Rocky Mts and Great Plains - Disc 2.iso
/
PROGRAM
/
ETC
/
UPDTRULS.AVE
< prev
next >
Wrap
Text File
|
1998-07-18
|
3KB
|
73 lines
' @(#)updtruls.ave 1.4 3/11/96 19:34:08
' This script creates a defaults list used by attribute aware
' editing for setting an FTab's default editing rules. The default
' rules are set by looking up the FTab field names in the field name
' lists provided.
'
' The defaults list logically contains five-element records: the default
' field name, the name of the shape type class, the name of the attribute
' update rule class and the union and split rules for single field rules,
' or the paried field name and range type for range rules. The first
' record is the default single field rule, the second record is the default
' range type. The default single rule will be applied to any field not
' finding a default (single or range). The default range rule is used if
' a default range rule is required (used by the GUI).
'
UpdateRules =
{"", Nil.GetClass.GetClassName, AttrSingle.GetClassName,
#ATTR_UNIONRULE_COPY, #ATTR_SPLITRULE_COPY,
"", Nil.GetClass.GetClassName, AttrRange.GetClassName,
"", #ATTR_RANGETYPE_CONTINUOUS,
"AREA", Polygon.GetClassName, AttrSingle.GetClassName,
#ATTR_UNIONRULE_SHAPEAREA, #ATTR_SPLITRULE_SHAPEAREA,
"PERIMETER", Polygon.GetClassName, AttrSingle.GetClassName,
#ATTR_UNIONRULE_SHAPELENGTH, #ATTR_SPLITRULE_SHAPELENGTH,
"LENGTH", PolyLine.GetClassName, AttrSingle.GetClassName,
#ATTR_UNIONRULE_SHAPELENGTH, #ATTR_SPLITRULE_SHAPELENGTH,
"L_F_ADD", PolyLine.GetClassName, AttrRange.GetClassName,
"L_T_ADD", #ATTR_RANGETYPE_ADDRESS,
"LEFTADD1", PolyLine.GetClassName, AttrRange.GetClassName,
"LEFTADD2", #ATTR_RANGETYPE_ADDRESS,
"L_ADD_FROM", PolyLine.GetClassName, AttrRange.GetClassName,
"L_ADD_TO", #ATTR_RANGETYPE_ADDRESS,
"LADD_FM", PolyLine.GetClassName, AttrRange.GetClassName,
"LADD_TO", #ATTR_RANGETYPE_ADDRESS,
"LFROM", PolyLine.GetClassName, AttrRange.GetClassName,
"LTO", #ATTR_RANGETYPE_ADDRESS,
"R_F_ADD", PolyLine.GetClassName, AttrRange.GetClassName,
"R_T_ADD", #ATTR_RANGETYPE_ADDRESS,
"RGTADD1", PolyLine.GetClassName, AttrRange.GetClassName,
"RGTADD2", #ATTR_RANGETYPE_ADDRESS,
"R_ADD_FROM", PolyLine.GetClassName, AttrRange.GetClassName,
"R_ADD_TO", #ATTR_RANGETYPE_ADDRESS,
"RADD_FM", PolyLine.GetClassName, AttrRange.GetClassName,
"RADD_TO", #ATTR_RANGETYPE_ADDRESS,
"RFROM", PolyLine.GetClassName, AttrRange.GetClassName,
"RTO", #ATTR_RANGETYPE_ADDRESS,
"LORANGE", PolyLine.GetClassName, AttrRange.GetClassName,
"HIRANGE", #ATTR_RANGETYPE_CONTINUOUS}
' Write the list to an odb file.
anODB = ODB.Make("updtruls.db".AsFileName)
anODB.Add(UpdateRules)
anODB.Commit